xen/spinlock: disable spinlock debugging in console_force_unlock()
authorJuergen Gross <jgross@suse.com>
Wed, 8 Jan 2020 10:43:24 +0000 (11:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 8 Jan 2020 18:43:17 +0000 (18:43 +0000)
commitf3b5ba34ceae42354d0cc321224029cad4f4dcc3
tree079c53d37aa873c78acce3db3cb32878758e6dfc
parenta509590a11aad73765d8c6bfd3c589486bfd069c
xen/spinlock: disable spinlock debugging in console_force_unlock()

console_force_unlock() might result in subsequent ASSERT() triggering
when CONFIG_DEBUG_LOCKS was active. Avoid that by calling
spin_debug_disable() in console_force_unlock() and make the spinlock
debug assertions trigger only if spin_debug was active.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/spinlock.c
xen/drivers/char/console.c